package com.ruoyi.recruit.service;

import java.util.List;
import com.baomidou.mybatisplus.extension.service.IService;
import com.ruoyi.recruit.domain.RecruitContent;

/**
 * 招聘内容Service接口
 * 
 * @author ruoyi
 * @date 2022-01-17
 */
public interface IRecruitContentService extends IService<RecruitContent>
{
    /**
     * 查询招聘内容
     * 
     * @param contentId 招聘内容主键
     * @return 招聘内容
     */
    public RecruitContent selectRecruitContentByContentId(Long contentId);

    /**
     * 查询招聘内容
     *
     * @param recruitId 招聘信息id
     * @return 招聘内容
     */
    public List<RecruitContent> selectRecruitContentByRecruitId(Long recruitId);

    /**
     * 查询招聘内容列表
     * 
     * @param recruitContent 招聘内容
     * @return 招聘内容集合
     */
    public List<RecruitContent> selectRecruitContentList(RecruitContent recruitContent);

    /**
     * 新增招聘内容
     * 
     * @param recruitContent 招聘内容
     * @return 结果
     */
    public int insertRecruitContent(RecruitContent recruitContent);

    /**
     * 修改招聘内容
     * 
     * @param recruitContent 招聘内容
     * @return 结果
     */
    public int updateRecruitContent(RecruitContent recruitContent);

    /**
     * 批量删除招聘内容
     * 
     * @param contentIds 需要删除的招聘内容主键集合
     * @return 结果
     */
    public int deleteRecruitContentByContentIds(String contentIds);

    /**
     * 删除招聘内容信息
     * 
     * @param contentId 招聘内容主键
     * @return 结果
     */
    public int deleteRecruitContentByContentId(Long contentId);

    /**
     * 检验招聘计划唯一
     *
     * @param recruitContent 招聘计划
     * @return 结果
     */
    public String checkRecruitContentUnique(RecruitContent recruitContent);

    /**
     * 检查岗位名称和岗位代码是否存在
     * @param postName
     * @param postCode
     * @param recruitId
     * @return
     */
    public RecruitContent checkRecruitContent(String postName, String postCode, Long recruitId);

    /**
     * 导入招聘计划
     *
     * @param contentList 员工行政职务列表
     * @param operName 操作用户
     * @return 结果
     */
    public String importContent(List<RecruitContent> contentList, Long recruitId, boolean isUpdateSupport, String operName);

    /**
     * 查询空岗信息
     *
     * @param recruitContent 招聘信息
     * @return 招聘内容
     */
    public List<RecruitContent> selectRecruitContentByEmpty(RecruitContent recruitContent);
}
